package com.asiainfo.complier.helper;

import org.w3c.dom.Document;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.FileInputStream;
import java.io.InputStream;

public class XmlHelper {

	Document document = null;

	public XmlHelper(String fileName) throws Exception {

		DocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance();

		DocumentBuilder dombuilder = domfac.newDocumentBuilder();
		InputStream is = new FileInputStream(fileName);
		document = dombuilder.parse(is);

	}

}
